package Homework;

import java.util.Scanner;

public class CommandBySwich {
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        System.out.println("请选择您需要的服务1.存款 2.取款 3.查询余额 4.退卡");
        int num = scan.nextInt();
        switch (num){

            case 1:
                System.out.println("存款");

            case 2:
                System.out.println("取款");
            case 3:
                System.out.println("查询余额");
            case 4:
                System.out.println("退卡");
            default:
                System.out.println("输入错误请重新输入");

        }





    }
}
